import http from '@http/http'

export const _getUserInfo = (errMsg) => http.GET('/api/auth/userInfo', {}, errMsg)

// 登陆
export const userLogin = obj => http.POST('/api/admins/login', obj)

// 登出
export const userLogout = () => http.GET('/api/admins/exit')

export const userRegister = obj => http.POST('/api/admins/register', obj)

export const exportVio = () => http.EXPORT('api/violations/exportUser')

export const exportVio2 = () => http.EXPORT('api/violations/exportUser2')

export const getMajor = () => http.GET('api/violations/getAllMajor')

export const getKind = () => http.GET('api/violations/getAllKind')

export const getAcade = () => http.GET('api/violations/getAllAcade')
